package homework.homework_4.student;

/**
 * @author 朱
 * @date 2019032122:04
 */
public abstract class Student {
    final static int courseNo=3;
    public String type;
    public String name;
    float[] courses;
    public String courseGrade;

    public Student(){

    }
    public Student(String name) {
        this.name = name;
        courses=new float[courseNo];
    }

    public abstract void calculateGrade();

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float[] getCorses() {
        return courses;
    }

    public void setCorses(float[] corses) {
        this.courses = corses;
    }

    public String getCourseGrade() {
        return courseGrade;
    }

    public void setCourseGrade(String courseGrade) {
        this.courseGrade = courseGrade;
    }
}
